
<div class="container">
    <div class="tehui-col goodlist">
        <div class="col-md-12">
            <div class="title">
                <div class="pull-left">
                    <a href="<?php echo  $this->createUrl('/front/index/index',array('cid'=>$cid)); ?> ">
                        <span class="btn txslide <?php if($timeico == 'td'){ echo 'active';} ?> ">
                            <em>今日</em>热卖
                        </span>
                    </a>
                    <a href="<?php echo  $this->createUrl('/front/index/index',array('cid'=>$cid,'timeico'=>'y') ); ?>">                     
                        <span class="btn dj-btn txslide <?php if($timeico == 'y'){ echo 'active';} ?>" >
                            <em>上期</em>热卖
                        </span>
                    </a>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="body row" id="txbody">
            <?php 
			$i = 0;
			foreach ($home_goods as $good): 
				//判断是否前40个不使用lazyload插件加载图片
				if($i < 40){
					$lazyload = true;
				}else{
					$lazyload = false;
				}
			?>
               <?php include $this->getViewFile('../lib/nohfgoodlist'); ?>
            <?php 
			$i++;
			endforeach;
			?>
        </div>
        <div class="clearfix"></div>
        <div class="pager" id="pager_web"><?php echo $web_pages;?></div>
        <div class="pager" id="pager">
            <?php
//            $this->widget('CLinkPager', array(
//                'header' =>"",
//                'firstPageLabel' => '首页',
//                'lastPageLabel' => '末页',
//                'prevPageLabel' => '上一页',
//                'nextPageLabel' => '下一页',
//                'pages' => $pages,
//                'footer' => "<span>共<em>{$pages->pageCount}</em>页</span>",
//                'maxButtonCount' => 8
//                    )
//            );
echo $pages;
            ?>
        </div>
    </div>
</div>
